package com.qc.entity;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

public class UserBossEntity extends UserEntity {

	protected long bossUserId;
	protected String company;
	protected String duty;
	protected String industry;
	protected String interestTag;
	protected String bossSign;
	protected String secFrontPhoto;
	protected String secFullPhoto;
	protected String secLivePhoto;
	
	protected int isFollowed;//是否关注 1/已关注
	protected int isOrdered;//是否有订单关系 1/有订单关系
	
	protected List<OrderCommentEntity> ocList;
	
	public static UserBossEntity getInstance(ResultSet rs) throws SQLException {
		UserBossEntity entity = new UserBossEntity();

		entity.setCompany(rs.getString("company"));
		entity.setDuty(rs.getString("duty"));
		entity.setIndustry(rs.getString("industry"));
		entity.setInterestTag(rs.getString("interest_tag"));
		entity.setBossSign(rs.getString("boss_sign"));
		entity.setSecFrontPhoto(rs.getString("sec_front_photo"));
		entity.setSecFullPhoto(rs.getString("sec_full_photo"));
		entity.setSecLivePhoto(rs.getString("sec_live_photo"));
		entity.setAvatar(rs.getString("avatar"));
		entity.setNickname(rs.getString("nickname"));
		entity.setUserAge(rs.getString("user_age"));
		entity.setSex(rs.getString("sex"));
		entity.setBossUserId(rs.getInt("user_id"));
		entity.setIsFollowed(rs.getInt("isFollowed"));
		entity.setIsOrdered(rs.getInt("isOrdered"));
		
		return entity;
	}
	
	public long getBossUserId() {
		return bossUserId;
	}
	public void setBossUserId(long bossUserId) {
		this.bossUserId = bossUserId;
	}
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public String getDuty() {
		return duty;
	}
	public void setDuty(String duty) {
		this.duty = duty;
	}
	public String getIndustry() {
		return industry;
	}
	public void setIndustry(String industry) {
		this.industry = industry;
	}
	public String getInterestTag() {
		return interestTag;
	}
	public void setInterestTag(String interestTag) {
		this.interestTag = interestTag;
	}
	public String getBossSign() {
		return bossSign;
	}
	public void setBossSign(String bossSign) {
		this.bossSign = bossSign;
	}
	public String getSecFrontPhoto() {
		return secFrontPhoto;
	}
	public void setSecFrontPhoto(String secFrontPhoto) {
		this.secFrontPhoto = secFrontPhoto;
	}
	public String getSecFullPhoto() {
		return secFullPhoto;
	}
	public void setSecFullPhoto(String secFullPhoto) {
		this.secFullPhoto = secFullPhoto;
	}
	public String getSecLivePhoto() {
		return secLivePhoto;
	}
	public void setSecLivePhoto(String secLivePhoto) {
		this.secLivePhoto = secLivePhoto;
	}

	public int getIsFollowed() {
		return isFollowed;
	}

	public void setIsFollowed(int isFollowed) {
		this.isFollowed = isFollowed;
	}

	public int getIsOrdered() {
		return isOrdered;
	}

	public void setIsOrdered(int isOrdered) {
		this.isOrdered = isOrdered;
	}

	public List<OrderCommentEntity> getOcList() {
		return ocList;
	}

	public void setOcList(List<OrderCommentEntity> ocList) {
		this.ocList = ocList;
	}
	
	
}
